package com.yy.sensor;

import android.util.Log;

public class Spo2 {

    private static final String TAG = "Spo2";

    public native Spo2HrData getSpo2Hr();
    //int spo2, int spo2_valid, int heart_rate, int pch_hr_valid

    public native int open();

    public native int close();

    static {
        System.loadLibrary("spo2_lib");
    }

//Android - NDK: 在jni层生成java层对象，并调用java层的方法/
//https://blog.csdn.net/dami_lixm/article/details/142098502

//Android JNI开发--JNI返回Java对象
//https://juejin.cn/post/6844903919882256391

//Android JNI 传递对象
//https://blog.csdn.net/abcSunl/article/details/74998913/

}
